package com.runrun.io;

import java.io.InputStream;

public class resources {
    //为了使项目运行时就将此方法进行加载，而且只加载一次，使用static方法
    public static InputStream getResourcesAsInputStream(String path){
        InputStream resourceAsStream = resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
